package com.csx.framework.springboot.sample.ioc;

import com.csx.framework.springboot.sample.boot.J10FactoryBean;
import com.csx.framework.springboot.sample.event.CustomApplicationEvent;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * <p> what does this class do ? </p>
 * <p> How does it work ?</p>
 * <p> Why does it do this ?</p>
 *
 * @author cuisongxu
 * @date 2023/8/16 周三 15:12
 */
@SpringBootApplication
public class SpringBootSampleIOCApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(SpringBootSampleIOCApplication.class, args);
        A bean = applicationContext.getBean(A.class);
        System.out.println(bean);
    }
}
